// for 语句
package main

import "fmt"

func main() {
	for i := 0; i < 10; i++ {
		fmt.Println(i)
	}

	// slice 例子
	var slice1 []int = make([]int, 5)
	for i := 0; i <= 4; i++ {
		slice1[i] = i
	}
	for k, v := range slice1 {
		fmt.Printf("slice1 %d=>%d\n", k, v)
	}
}